home *** CD-ROM | disk | FTP | other *** search
- /*
- special functions - c code called from the interpreter by the
- special opcode
- */
- #include "sc.h"
- #include "pdl_data.h"
- #include "sc_pdl_dat.h"
-
- /*compute nbp prefix padding length, input t0(idlen) output t1(padding)*/
- void rRTMPidpad(pdl_pr_dat_pt);
- void rRTMPidpad(pdl_dat)
- register pdl_pr_dat_pt pdl_dat;
- {pdl_dat->pr_regs[t1] = pdl_dat->pr_regs[t0] % 8;
- }
-
- void do_special(pdl_dat,what_rtn)
- pdl_pr_dat_pt pdl_dat;
- long what_rtn;
- {switch(what_rtn) {
- case RTMPidpad:
- rRTMPidpad(pdl_dat);
- break;
- default:
- break;
- }
- }
-
-